using System.Collections.Generic;
using System.Drawing;

namespace Interface
{
	public class ImageCache : IImageCache
	{
		private readonly Dictionary<string, Image> images = new Dictionary<string, Image>();

		public bool TryGet(string path, out Image image)
		{
			return images.TryGetValue(path, out image);
		}

		public void Add(string path, Image image)
		{
			images.Add(path, image);
		}
	}
}